import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import { Layout } from 'antd';
import Content from "./views/content"
import './App.css';
import './common/common.styl';

const { Content : AntdContent} = Layout;

class App extends Component {
  render() {
    return (
      <div className="App">
        <Router>
       {
         /*
         头部导航 可注释
         <Route path="/" component={Header} />
         */
          }
          <AntdContent>
            <Switch>
              <Route exact path="/" render={routeProps => <Content {...routeProps} />} />
            </Switch>
          </AntdContent>
        </Router>
      </div>
    );
  }
}

export default App;
